﻿using System;
using UnityEngine;

namespace ParticlePlayground
{
	// Token: 0x02000141 RID: 321
	public struct PlaybackParticle
	{
		// Token: 0x060006DA RID: 1754 RVA: 0x00028BFC File Offset: 0x00026DFC
		public PlaybackParticle(Vector3 position, Vector3 velocity, float rotation, float size, float lifetime, float startLifetime, float playgroundLife, float playgroundStartLifetime, float playgroundEndLifetime, float playgroundLifetimeSubtraction, Color32 color, Vector3 sourcePosition, float startingSize)
		{
			this.position = position;
			this.velocity = velocity;
			this.rotation = rotation;
			this.size = size;
			this.lifetime = lifetime;
			this.startLifetime = startLifetime;
			this.playgroundLife = playgroundLife;
			this.playgroundStartLifetime = playgroundStartLifetime;
			this.playgroundEndLifetime = playgroundEndLifetime;
			this.playgroundLifetimeSubtraction = playgroundLifetimeSubtraction;
			this.color = color;
			this.sourcePosition = sourcePosition;
			this.startingSize = startingSize;
		}

		// Token: 0x060006DB RID: 1755 RVA: 0x00028C70 File Offset: 0x00026E70
		public   ParticleSystem.Particle CloneAsParticle(bool includeVelocity = false)
		{
			ParticleSystem.Particle result = default(ParticleSystem.Particle);
			result.position = this.position;
			result.rotation = this.rotation;
			result.lifetime = this.lifetime;
			result.startLifetime = this.startLifetime;
			result.startSize = this.size;
			result.startColor = this.color;
			if (includeVelocity)
			{
				result.velocity = this.velocity;
			}
			return result;
		}

		// Token: 0x060006DC RID: 1756 RVA: 0x00028CE8 File Offset: 0x00026EE8
		public   SerializedParticle CloneAsSerializedParticle()
		{
			return new SerializedParticle(this.position, this.velocity, this.rotation, this.size, this.lifetime, this.startLifetime, this.playgroundLife, this.playgroundStartLifetime, this.playgroundEndLifetime, this.playgroundLifetimeSubtraction, this.color, this.sourcePosition, this.startingSize);
		}

		// Token: 0x060006DD RID: 1757 RVA: 0x00028D4C File Offset: 0x00026F4C
		public   PlaybackParticle Clone()
		{
			PlaybackParticle result = new PlaybackParticle(this.position, this.velocity, this.rotation, this.size, this.lifetime, this.startLifetime, this.playgroundLife, this.playgroundStartLifetime, this.playgroundEndLifetime, this.playgroundLifetimeSubtraction, this.color, this.sourcePosition, this.startingSize);
			return result;
		}

		// Token: 0x040006E6 RID: 1766
		[HideInInspector]
		public Vector3 position;

		// Token: 0x040006E7 RID: 1767
		[HideInInspector]
		public Vector3 velocity;

		// Token: 0x040006E8 RID: 1768
		[HideInInspector]
		public float rotation;

		// Token: 0x040006E9 RID: 1769
		[HideInInspector]
		public float size;

		// Token: 0x040006EA RID: 1770
		[HideInInspector]
		public float lifetime;

		// Token: 0x040006EB RID: 1771
		[HideInInspector]
		public float startLifetime;

		// Token: 0x040006EC RID: 1772
		[HideInInspector]
		public float playgroundLife;

		// Token: 0x040006ED RID: 1773
		[HideInInspector]
		public float playgroundStartLifetime;

		// Token: 0x040006EE RID: 1774
		[HideInInspector]
		public float playgroundEndLifetime;

		// Token: 0x040006EF RID: 1775
		[HideInInspector]
		public float playgroundLifetimeSubtraction;

		// Token: 0x040006F0 RID: 1776
		[HideInInspector]
		public Color32 color;

		// Token: 0x040006F1 RID: 1777
		[HideInInspector]
		public Vector3 sourcePosition;

		// Token: 0x040006F2 RID: 1778
		[HideInInspector]
		public float startingSize;
	}
}
